/*
 * Group.h
 *
 *  Created on: 19/05/2010
 *      Author: Nadav
 */

#ifndef GROUP_H_
#define GROUP_H_

#include "Object3D.h"

class Group: public Object3D {
public:
	Group(int objectsInGroup);
	virtual ~Group();
	virtual bool intersect(const Ray &r, Hit &h, float tmin);
	void addObject(int index, Object3D *obj);
protected:
	Object3D** objects;
	int objectsInGroup;
};

#endif /* GROUP_H_ */
